<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="g" uri="/g-tags"%>
<table>
    <thead>
        <tr>
            <th style="width:40px;"><input type="checkbox" onclick="selects(this)"/></th>
            <th style="width:40px;">ID</th>
            <th><a href="javascript:orderBy('username')">用户名</a></th>
            <th>密码</th>
            <th>姓名</th>
            <th>状态</th>
            <th>添加时间</th>
            <th>操作</th>
        </tr>
    </thead>
    <tbody>
    	<s:iterator value="page.items">
        <tr>
            <td><input type="checkbox" name="ids" value="${id }" /></td>
            <td >${id }</td>
            <td>${username }</td>
            <td>${password }</td>
            <td>${trueName }</td>
            <td><g:state state="userState" value="${state}"/></td>
            <td>${insertTime }</td>
            <td>
            <g:operate title="编辑" url="user/user!edit.shtml?user.id=${id }" type="href"/>
            </td>
        </tr>
        </s:iterator>
    </tbody>
</table>
${page.toolBar }